﻿// Ŭnicode please
#pragma once

#include <SRRenderer.h>
#include <memory>
#include "SRMacro.h"
#include "SRGLinc.h"
#include "SRShader.h"
#include "SRResource.h"
#include "SRModel.h"

#if _GLES2_
class SimpleRenderApp : public sora::RenderApp {
public:
	SimpleRenderApp();
	virtual ~SimpleRenderApp();

	void init();
	void deinit();
	void render(long tick, int width, int height);

private:
	std::auto_ptr<sora::ShaderProgram> program_;
	sora::Model *model_;
	std::auto_ptr<sora::VertexBufferObject> vertexBuffer_;
	std::auto_ptr<sora::IndexBufferObject> indexBuffer_;
};
#endif